class parent:
    def __init__(self, height):
        self.height = height  # 3.height在这里


class Son1(parent):
    def __init__(self, age, *args):
        self.age = age  # 2.age在这里初始化
        super().__init__(*args)


class Son2(parent):
    def __init__(self, score, *args):
        self.score = score
        super().__init__(*args)


class GrandSON(Son1, Son2):
    def __init__(self, name, *args):
        self.name = name  # 1.name在这里初始化
        super().__init__(*args)


if __name__ == '__main__':
    xiaoming = GrandSON('小明', 18, 98.5, 1.85)  # name、age、grade、height
    print(xiaoming.age)
    print(xiaoming.name)
    print(xiaoming.score)
    print(xiaoming.height)
